package com.yxb.news.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.yxb.common.annotation.Excel;
import com.yxb.common.core.domain.BaseEntity;

/**
 * 家教资讯对象 teaching_news
 * 
 * @author 林德炫
 * @date 2025-03-04
 */
public class TeachingNews extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资讯id */
    private Long newsId;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String title;

    /** 资讯内容 */
    @Excel(name = "资讯内容")
    private String content;

    /** 发布者id */
    @Excel(name = "发布者id")
    private Long authorId;

    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAuthorId(Long authorId) 
    {
        this.authorId = authorId;
    }

    public Long getAuthorId() 
    {
        return authorId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("newsId", getNewsId())
            .append("title", getTitle())
            .append("content", getContent())
            .append("authorId", getAuthorId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
